tags:

views:

34

answers:

1

I am using javascript for opening a new window when clicked on the link. I want that the new window should dispaly the address bar but the value of that bar should not change.

Can i do that?

the script code i am usng is:

="Javascript:void(window.open('help.aspx?ID=" + Fields!ID.Value +"','mywindow','_self','width=500,height=500'))"

thanks in advance

A: 

I think that should be what happens using your code already.

Just remove the __self argument, it doesn't belong there and overrides your width and height settings.

window.open('help.aspx?ID=" + Fields!ID.Value +"','mywindow','width=500,height=500'))"
Pekka
but its not working...what d problem might be?
jasmeet
@jasmeet what happens?
Pekka
it does not display the address bar...and it if i set location=1,it displays the address bar but if u want to edit it..it is easily done.
jasmeet
@jasmeet which browser are you using?
Pekka
@jasmeet I don't think there is a way to *force* the browser to display a read-only address bar, but if you turn of all bars, modern Firefoxes and IEs will automatically show one for security reasons.
Pekka
k..i olso think so..thanx pekka..
jasmeet