This is topic Java Script Question in forum Officers' Lounge at Flare Sci-Fi Forums.


To visit this topic, use this URL:
https://flare.solareclipse.net/ultimatebb.php/topic/10/3047.html

Posted by Aban Rune (Member # 226) on :
 
Ok... I'm dabbling in basic Javascript for a website I'm doing at work and I'm having trouble finding some code. I'm trying to get a small window to pop open at a fixed size but that has a scroll bar on the side. I've got a fixed size box with no scroll bar. I'm using this:

on.click="window.open('spec_offer_1.htm','plain','height=374,width=640','target=top')"

(I don't actually have the period between on and click, but it wouldn't let me submit the thread with that code there)

I thought adding the scroll bar involved adding "scroll=yes" or something like that, but I don't know the exact string nor where to add it.

Help a brutha out?
 
Posted by Harry (Member # 265) on :
 
quote:

window.open('spec_offer_1.htm','plain','height=374,width=640,scrollbars=yes,target=top')

That should work. For more Window object methods, see here.
 
Posted by Aban Rune (Member # 226) on :
 
Grazti, senore. I'll try that code and bookmark that link.

edit: OK, that link didn't work, but I just bookmarked the home page and found the java manual.
 


© 1999-2024 Charles Capps

Powered by UBB.classic™ 6.7.3