473,385 Members | 1,397 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Open new window on click and alert buttons and Crazy Browser

I'm pretty green when it comes to web design and worse regarding JS - I'm a
true cut n paste hacker and good at that!! LOL

Two questions. I have a bunch of FAQ's as text questions that I want to do
either one of the following with when a visitor clicks the question -

1) Open a pop-up window of X x Y size, centred with no controls, or
2) Have an alert box do the same.

I know the syntax for the pop-up window but not how to tie it to a text link
(have found the "input type = button" but don't want buttons). The alert
box would maybe be easier but every code generator I have used doesn't seem
to accept alot of text (plus I still need to tie it to a text item). Is
there a max number of characters in an Alert box?

Lastly, for anyone that uses Crazy Browser. Does it have a problem with
handling pop-up windows from JS? They all open as fullsize windows as a new
tab. Is it one of MY settings?

Thanks.

--
Ian Shere
Tarzan Design Ltd
Award Winning Architecture
www.tarzandesign.co.nz
Jul 20 '05 #1
1 1691
"Ian Shere" <ia*@tarzandesign.co.nz> writes:
I'm pretty green when it comes to web design and worse regarding JS - I'm a
true cut n paste hacker and good at that!! LOL
So, you don't know what you are doing, but you are good at it? :)
Two questions. I have a bunch of FAQ's as text questions that I want to do
either one of the following with when a visitor clicks the question -

1) Open a pop-up window of X x Y size, centred with no controls, or
2) Have an alert box do the same.
Alert boxes are small and disruptive. Popup windows can be larger and
marginally less disruptive (because they aren't "modal" and grab
focus). However, popups are also more fragile, since many people are
using poup blockers.
I know the syntax for the pop-up window but not how to tie it to a text link
(have found the "input type = button" but don't want buttons). The alert
box would maybe be easier but every code generator I have used doesn't seem
to accept alot of text (plus I still need to tie it to a text item). Is
there a max number of characters in an Alert box?


Try reading here:
<URL:http://www.infimum.dk/HTML/JSwindows.html#ref_3_4>
Read the rest too.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Rob Wahmann | last post by:
I'm having trouble with the following code appending the form name and an empty value to the end of the url. Can anyone tell me what's wrong? I appreciate any tips or advice you can pass along! ...
8
by: alanstew | last post by:
With the body tag calling out 'window onload', a function with a 'window.open' fails at the 'window.open' line. If I cut out the body tag, the function executes as normal. At first I thought it...
1
by: lawrence | last post by:
This PHP function prints out a bunch of Javascript (as you can see). This is all part of the open source weblog software of PDS (www.publicdomainsoftware.org). We had this javascript stuff...
3
by: NeverLift | last post by:
But, if it's not open, I don't want to open it . . . using window.open will open it if it doesn't exist, even if the url in that open is null (the window is then empty -- but it's open). The...
8
by: Dominic Tocci | last post by:
I'm searching for a way to use window.open on my web page to open a window in firefox that allows the sidebars to work (bookmarks, history, etc). When I use the following: var...
8
by: J Gao | last post by:
Hi, experts, On a button click, I need to save some data to the session object. Then open a new window. The new window will use the session data saved in the first window. I don't want use to...
2
by: carlor | last post by:
Hi there, I have a form that contains a link button. When the user clicks the link button I need to enable a couple of other buttons on the page and open a new browser window giving it focus...
6
by: shil | last post by:
I have a server side button that needs to do some preperation and afterwards, if everything goes well, open a new browser with a specific url. I know how to execute javascript from a server side...
13
by: Seth Grimes | last post by:
Hello all, I want to open a window when a user leaves my site. I set up a function called by onUnload. To skip the window.open if the user hasn't left my site, I set a variable in my links and...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.