Click to See Complete Forum and Search --> : Always opens new window !!!!???help


Asch
04-14-2003, 09:01 AM
Hi I have a little script ( on a welcome page) that popus a new window without all the buttons (full screen)... now the problem is that after this opens in this full screen each link creates a new window !! duhh.. I dont want that..get crasy with that thing :O)...

please help ...hope you can do it...her s the ful window script per haps it could help !!isnt it correct ??

many thx
-------------------------

function fullScreen(theURL) {
window.open(theURL, '', 'fullscreen=yes, scrollbars=auto');


------------------------

khalidali63
04-14-2003, 09:06 AM
Originally posted by Asch

function fullScreen(theURL) {
window.open(theURL, '', 'fullscreen=yes, scrollbars=auto');
------------------------

If I understand you correctly,you want all subsequent windows to be open in the same window instead of having multiple windows?

if above is correct then you only need to do this

function fullScreen(theURL) {
window.open(theURL, 'popupWin', 'fullscreen=yes, scrollbars=auto');

hope this helps

Cheers

Khalid

Asch
04-14-2003, 10:36 AM
I think you ve understood :o)!! but I ve added
'popupWin', but it doesnt help....

It s actually like taht ! : the users arrives on an normal welcome page , then after clicking on the logo it enters into the full page, on another window (with the code above)...
After that I want taht all links on this page opens but not in a new window cause tahts what ther a doeing !!!dont no why !! :O) duhh..for exemple if i have 10 links on this page il get 10 windows lol :O)....I want only 2, the index and the home....You god it :o) ...LOL...

hope you can help thx

asch

khalidali63
04-14-2003, 11:00 AM
Oh okay..
you need to do this.in the page that opens in the popup window
make sure all of anchor tags have a traget attribute with this value

<a href="url" target="_self">

Cheers

Khalid

Asch
04-15-2003, 02:26 AM
Number one :O) duhh...didnt know this command "target":o)...thx
--------------------------------------------------------
I have another little question :o) !! in the same idea!!

this command popups a new window...I dont want it to popup a new window but stay in the same :o)...like above but "target doesnt work with this !!!

i dont want the underline from an <a href="">, with this il got it but it opens another window duhhhh..!!!!

do you know the command for staying in the same window ???:O)

-----------------------

onClick="window.open('XXX.html')" style="cursor: hand"

-----------------------

Thanx kiffa :O)

see ya