I would like to make a small internet window for my website with no address bar. I want to open up this window in the middle of the screen, so the user can email information out based on the page their on. How can I do this? Will the session variables still
be good or will they start a new session? The new window will be based on some session variables that are set on the main page their on.
Using: Visual Web Developer 2008; Asp.net 3.5; VB.net Code; Access db
<SCRIPT LANGUAGE="javascript">
<!--
window.open ('titlepage.html', 'newwindow', config='height=100,
width=400, toolbar=no, menubar=no, scrollbars=no, resizable=no,
location=no, directories=no, status=no')
-->
</SCRIPT>
location - is your URL box. session will still be the same
or, use some jquery colorbox/lightbox/boxy, or use modalpopupextender using ajax, session will still be the same.
the bottom links are what you probably want, but you can do either-or the javascript window.open - you'll have to make a new page, but with jquery or ajax modal's, you can keep your controls that you used on the same page, not having to make another one.
<SCRIPT LANGUAGE="javascript">
<!--
window.open ('titlepage.html', 'newwindow', config='height=100,
width=400, toolbar=no, menubar=no, scrollbars=no, resizable=no,
location=no, directories=no, status=no')
-->
</SCRIPT>
location - is your URL box. session will still be the same
How would I open this in an asp.net/vb.net code button with using Java script?
Marked as answer by tvb2727 on Oct 19, 2011 11:01 PM
tvb2727
Participant
925 Points
1275 Posts
How to make a small internet window with no address bar
Oct 19, 2011 09:22 PM|LINK
I would like to make a small internet window for my website with no address bar. I want to open up this window in the middle of the screen, so the user can email information out based on the page their on. How can I do this? Will the session variables still be good or will they start a new session? The new window will be based on some session variables that are set on the main page their on.
Using: Visual Web Developer 2008; Asp.net 3.5; VB.net Code; Access db
robwscott
Star
8079 Points
1491 Posts
Re: How to make a small internet window with no address bar
Oct 19, 2011 09:28 PM|LINK
<SCRIPT LANGUAGE="javascript"> <!-- window.open ('titlepage.html', 'newwindow', config='height=100, width=400, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no') --> </SCRIPT> location - is your URL box. session will still be the sameor, use some jquery colorbox/lightbox/boxy, or use modalpopupextender using ajax, session will still be the same.
the bottom links are what you probably want, but you can do either-or the javascript window.open - you'll have to make a new page, but with jquery or ajax modal's, you can keep your controls that you used on the same page, not having to make another one.
http://choosedaily.com/1178/15-jquery-popup-modal-dialog-plugins-tutorials/
http://www.ericmmartin.com/projects/simplemodal-demos/
http://www.codeproject.com/KB/ajax/ModalPopupExtender.aspx
Mark Answered if it helps - Good luck!
Cheers!
Design And Align
- Rob
tvb2727
Participant
925 Points
1275 Posts
Re: How to make a small internet window with no address bar
Oct 19, 2011 09:39 PM|LINK
How would I open this in an asp.net/vb.net code button with using Java script?
tvb2727
Participant
925 Points
1275 Posts
Re: How to make a small internet window with no address bar
Oct 19, 2011 10:18 PM|LINK
The code below works. It's a html submit button though. The only issue is the address bar still shows. How can I disable that?
<input type="submit" name="btnemail" value="What's This?" style="z-index: 1; left: 571px; top: 160px; position: absolute; width: 292px; font-weight: 700; height: 31px;" onclick="window.open('eqk.aspx','Items_Description','toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no, width=515px,height=235px,left='+((screen.width -350) / 2)+',top='+ (screen.height - 235) / 2+'');return false;" />YanekPavluk
Member
82 Points
19 Posts
Re: How to make a small internet window with no address bar
Oct 19, 2011 10:51 PM|LINK
As far as I know, most browsers (Firefox, IE8, Chrome) no longer allow you to hide the address bar for security reasons.