PDA

View Full Version : links windows resizing


suriya6in
10-29-2002, 08:30 AM
sir,

i have a javascript which has links to other webpages of my site.
but if i click that link, a new window opens which is of smaller size and the link page loads there.
i need to open my links page in the same window and not in a seperate window.
how do i do this?

is there any parameter to add after
window.open() command?

regards
suriya

ConfusedOfLife
10-29-2002, 08:45 AM
It's no parameter dear! Simply you shouldn't use window.open in here! You should change the location by :

window.location = "yournewpage.html";

Just for curosity : why don't you use the normal <a> tag?! It's no need to use JS in here I think...

suriya6in
10-29-2002, 09:07 AM
thankx for your reply sir,

i have used a java script for circular type menu for my links
In that script, already i have given
"window.open="mypage.html"

but it opens in a new window!!

what can i do.
i think i have to make use of "taget" with specific values to it.
but don't know how to use it!

regards
suriya

ConfusedOfLife
10-30-2002, 05:41 AM
You can use "target" with the "_self" option, but even if you omit it, I mean you use a normal <a> tag, your link will be opened in your current page. And also you can change all the window.opens to window.location! It shouldn't be that hard...