Javascript Help
Posted: January 4, 2005, 2:36 pm
Looking for some simplified instructions on how to add a single line URL for the javascript window.open function/command thing..
I thought I had it down, but everytime I clicked on the link that would open the new window, it would do so.. and also change the source page to a blank page with just [object] for text on it.. Here's what I want to do:
Have a page with text and a link in the text that links to a picture that pops up in a window that is sized to the picture (specifying the window/image size in the html code) when the text is clicked on.
I thought the syntax was simple like
< a href="javascript:window.open('http://www.blah.com/img/image.jpg','win ... height=200')" >link text< /a >
*shrug*
As an added bonus, what's the command for the mouse-over 'tool tip' type text that pops up? (not in a new window, just text).
I thought I had it down, but everytime I clicked on the link that would open the new window, it would do so.. and also change the source page to a blank page with just [object] for text on it.. Here's what I want to do:
Have a page with text and a link in the text that links to a picture that pops up in a window that is sized to the picture (specifying the window/image size in the html code) when the text is clicked on.
I thought the syntax was simple like
< a href="javascript:window.open('http://www.blah.com/img/image.jpg','win ... height=200')" >link text< /a >
*shrug*
As an added bonus, what's the command for the mouse-over 'tool tip' type text that pops up? (not in a new window, just text).