Robin-hood Posted December 15, 2005 Share Posted December 15, 2005 Hi guys! I a newbie in computers, but just love your site!I am now learning JavaScript, and I was wondering...is there a way for is there an alternative for a left or right parenthesis?()What are the alternatives? <div onmouseover="alert('hi')">wj</div> How do I replace "(" and ")" please? Link to comment Share on other sites More sharing options...
Chocolate570 Posted December 15, 2005 Share Posted December 15, 2005 Why would you want to? It should work perfectly. Link to comment Share on other sites More sharing options...
Robin-hood Posted December 15, 2005 Author Share Posted December 15, 2005 I am just curious I guess... I have seen like CharFromString...or something like that...thanks for all your help in advance. Link to comment Share on other sites More sharing options...
Chocolate570 Posted December 15, 2005 Share Posted December 15, 2005 ( = %28) = %29But it shouldn't work in javascript. Link to comment Share on other sites More sharing options...
Robin-hood Posted December 15, 2005 Author Share Posted December 15, 2005 I was thinking something towards this maybe... <div onmouseover='eval;{alertx"blah"x;replace.source(/x/g.String.fromCharCode(40,41))}'>blah</div> Any ideas? I am having troubles writing it right. Link to comment Share on other sites More sharing options...
Robin-hood Posted December 16, 2005 Author Share Posted December 16, 2005 So can anyone please help out? Link to comment Share on other sites More sharing options...
Chocolate570 Posted December 16, 2005 Share Posted December 16, 2005 <div onmouseover='eval;alert (x+"blah"+x);replace.source(/x/g.String.fromCharCode(40,41))'>blah</div>What do you want to do with the div? I don't understand, as you're using variables inside an event, which wont work. If you can explain it, i'll try to make a better code. Link to comment Share on other sites More sharing options...
Robin-hood Posted December 20, 2005 Author Share Posted December 20, 2005 Never mind thanks, I have some ideas how to do it now. Thanks for your help. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now