Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getURL("javascript:window.open... full path necessary?!

Status
Not open for further replies.

Spidy6123

Technical User
Joined
May 30, 2002
Messages
227
Location
CA
Hey guys,

for some reason when I try to open a page in a new window via:
Code:
getURL("javascript:window.open('menu2.html','Packages','channelmode=no,fullscreen=no,directories=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=640,height=600');void(0)");

it won't work unless I replace 'menu2.html' with the full path eg. '
makes it difficult if the site ever needs to be relocated.. what am I doing wrong?

TIA
 
not doing anything wrong

as default i always incude the full url .....as a variable that is loaded either from a text file or a backend database

at least that way nobody has to touch the fla

makes maintenance a bit easier
 
really.. anyway u can give me a crash course on loading a variable from a txt?

then maybe a sammple on using the variable of course
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top