473,396 Members | 1,866 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,396 software developers and data experts.

method write help me please

Hi, I have the follow problem:

a windows is divided on two frames: frame1 and frame2.

on frame 2 there is a buttom it runs a function 'SendMsg' that write (by
operator 'write' of javascript) a string with
link (this link should show a alert message) on frame1.

follow the javascript code:

frame1 = empty.

frame2 function SendMsg() in the <head>:

<script language="JavaScript">
function SendMsg {
var a=t1;
top.bodym.document.write('<html><head><title>PROVA </title><meta
http-equiv="Content-Type" content="text/html; charset=iso-8859-1">');
top.bodym.document.write('</head><body bgcolor="#FFFFFF">');
top.bodym.document.write('<font face="Verdana" size="2" color="#FF0011"><a
href="javascript:window.alert()">P R O V A</a></font>');
top.bodym.document.write('</body></html>');

}
</script>

it is ran by buttom whit operator: onClik....

But It doesn't work.

if i put <a href="javascript:void()"> instead of <a
href="javascript:window.alert()"> in to fuction it works.

Why doesn't it work with <a href="javascript:window.alert()"> ?

Thanks

Jul 23 '05 #1
1 1116
Vincy wrote:
Hi, I have the follow problem:

<--snip-->
Why doesn't it work with <a href="javascript:window.alert()"> ?


http://jibbering.com/faq/#FAQ4_24
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #2

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

Similar topics

1
by: sieg1974 | last post by:
Hi, I'm a beginner with c++ programming, and came across the following code. I have the following hierarchy of classes where both CLASS_A_PARENT and CLASS_B_PARENT extend MAIN. MAIN...
6
by: John Salerno | last post by:
I have a question about how one of these methods is called. The call theNote.Write(); uses the Write() method in the Document class, and not the Write() from the Note class. Why is this?...
5
by: Nick Flandry | last post by:
I'm running into an Invalid Cast Exception on an ASP.NET application that runs fine in my development environment (Win2K server running IIS 5) and a test environment (also Win2K server running IIS...
1
by: Phil Sandler | last post by:
Hello all, Thanks in advance for any help with this. I am trying to get sample code to run from Michael Russell's excellent article on removing whitespace:...
5
by: Vishal | last post by:
Hello, I already asked this question in the ASP.NET forums, but no help came. So I am hoping that somebody can help me out. This is really very URGENT me. For my e-commerce application, I...
3
by: Martin | last post by:
Hi, I am implemeting a form in asp.net. The form is quite large and the validation is reasonably complex, so I have decieded to implement my own validation rather than use any custon...
10
by: steve bull | last post by:
I have a class SwatchPanel which takes Swatch as a parameter type. How can I call a static function within the Swatch class? For example the code below fails on TSwatch.Exists. How can I get the...
3
by: Bill | last post by:
I'm using the POST method to submit a simple form html page with yes/no and checkbox fields to an asp response page which stores the values in a new dim string, then uses it to build a new table...
18
by: AlexanderVX | last post by:
How do I write a constructor mehtod call in this case /*-----------*/ template<typename Tclass CObjectPoolImpl { public: void smth(T* pObj) { if (pObj)
2
by: slizorn | last post by:
hi guys, i need to make a tree traversal algorithm that would help me search the tree.. creating a method to search a tree to find the position of node and to return its pointer value basically i...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.