Solved

open pop up window without Javascript enabled

Posted on 2006-10-25
8
1,861 Views
Last Modified: 2012-06-27
How can I open a pop window of particular size even when the javascript is disabled on the browser  on my ASP page ?
0
Comment
Question by:ranirajesh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +2
8 Comments
 
LVL 52

Expert Comment

by:Ryan Chong
ID: 17802258
if you want a resized pop up, sorry, you CAN'T do it without javascript, if you want open a pop up generally, it can be done by set the hyperlink's target to "blank", like:

<a href="test.asp" target="_blank">Test</a>
0
 

Author Comment

by:ranirajesh
ID: 17802288
This is what I use currently
Window.open(url, name, "toolbar=0,location=0,directories=0,status=yes,menubar=no,scrollbars=1,resizable=yes,width, height);

But it won't work when the Javascript is disabled . Also target =_blank opens a new window with all the toolbar which I don't want ..
0
 
LVL 52

Expert Comment

by:Ryan Chong
ID: 17802656
yup, and i think that's no perfect solutions here.. javascript must be enabled if you want to resize the pop up window.
0
What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

 
LVL 16

Expert Comment

by:HackneyCab
ID: 17803210
If someone is not using Javascript, then you can't control the behaviour of their browser. Which is probably why that person has disabled Javascript. Many people hate pop-ups, pop-unders, resized content windows, etc. You'll have to accept that you cannot get the result you want for visitors who are not allowing Javascript to run.

Do you really need to use a pop-up? Even for the people who have Javascript enabled, unwanted pop-ups are the sort of thing that persuade visitors to avoid a site. Even the triggered pop-ups are annoying if the new content could have been opened in the same window without consequence. These days people are becoming very capable of opening new content in a fresh window or tab using the right-mouse context menu.
0
 
LVL 16

Expert Comment

by:OliWarner
ID: 17808390
>> Also target =_blank opens a new window with all the toolbar which I don't want ..

I'm afraid, what you want and what you're going to get without JS enabled are two very different things. The nearest to what you want is just a plain target="_blank" popup.
0
 
LVL 6

Accepted Solution

by:
Basilisci earned 500 total points
ID: 17810181
Here's a solution that degrades gracefully. It will open a clean popup if javascript is enabled, and a normal new browser window if javascript is disabled.

<a href="test.asp" target="_blank" onclick="window.open('test.asp', 'somename', "toolbar=0,location=0,directories=0,status=yes,menubar=no,scrollbars=1,resizable=yes,width, height); return false;"
>Test</a>

Notice the return false; -statement in onclick, it prevents the normal link action from happening (opening new window) after the javascript is executed.
0
 
LVL 16

Expert Comment

by:HackneyCab
ID: 17811743
Basilisci's suggestion is probably the very closest you're going to get.
0
 

Author Comment

by:ranirajesh
ID: 17832091
Yes I guess Basilisci's is the closest solution  I can get to .

Thanx Basilisci ! Though I wish there was a way to get the pop up window in ASP !
0

Featured Post

More Than Just A Video Library

Train for your certification. Learn the latest DevOps tools. Grow your skillset to do better work.

At Linux Academy, we release new training modules every week so you'll always be up to date on the latest tech.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
The viewer will learn how to count occurrences of each item in an array.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question