a cry for javascript help
Jan. 19th, 2002 09:04 amOkay, I've looked on a number of javascript sites and even tried some little script generators, but I can't figure this simple thing out. I'm not experienced with this at all, so if anyone has the answer, please start from the beginning.
All I want to do is stick some javascript into a text link that opens a webpage in a new window that's a specific size and position on the screen. Shouldn't that be simple? I've seen it before, but I can't track down that example anymore. I know that I can use the target tag in plain HTML to open a link in another window, but what javascript do I include with the link to make it open in another window that's a certain size and position on the screen?
For argument's sake, here are my parameters:
Link text: Click here
URL: http://www.livejournal.com
new window width: 300 pixels
new window height: 400 px
position left: 40 px
position top: 20 px
If anyone knows how to do this properly or can refer me to a site that doesn't speak purely tech-ese, I'll buy you a beer the next time I see you.
By the way, what HTML tag do you use when you want to print script on an HTML page without the browser interpreting it as HTML (i.e. to provide the answer to my question)?
All I want to do is stick some javascript into a text link that opens a webpage in a new window that's a specific size and position on the screen. Shouldn't that be simple? I've seen it before, but I can't track down that example anymore. I know that I can use the target tag in plain HTML to open a link in another window, but what javascript do I include with the link to make it open in another window that's a certain size and position on the screen?
For argument's sake, here are my parameters:
Link text: Click here
URL: http://www.livejournal.com
new window width: 300 pixels
new window height: 400 px
position left: 40 px
position top: 20 px
If anyone knows how to do this properly or can refer me to a site that doesn't speak purely tech-ese, I'll buy you a beer the next time I see you.
By the way, what HTML tag do you use when you want to print script on an HTML page without the browser interpreting it as HTML (i.e. to provide the answer to my question)?