What are the different ways in which we can use the link
tag ? Illustrate with an example. Is it possible to link a
file with another file on a different file server ? If yes,
how ?



What are the different ways in which we can use the link tag ? Illustrate with an example. Is it p..

Answer / gayathri

<html>
<head>
<script language="javascript">
function sample()
{
window.open("test.htm",width='200,height=150,resizable=yes')
}
</script>
</head>
<body>
<a href="javascript:sample()">click Here </a>
</body>
</html>

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More JavaScript Interview Questions

Do unused imports affect performance javascript?

0 Answers  


What is this keyword?

9 Answers   Cognizant, Infosys, Satyam,


How generic objects can be created?

0 Answers  


Will javascript be replaced?

0 Answers  


What is the difference between java and java script?

9 Answers   IWW, Wipro,






Why global variables are bad javascript?

0 Answers  


What is the main difference between Client side JavaScript and and Server side Java Script?

7 Answers   Ramco,


Are java and javascript the same?

0 Answers  


What are disadvantages of using javascript?

0 Answers  


Hello , I am using following java script to open new window in I.E,but i am facing an issue the new window hangs often while opening,when you move mouse it opens normally.Can any body help me why this is happening as i am unable to understand this issue?please please if any one know so kindly help me I am in real difficulty through this issue.Thanks 'if(window.clipboardData){clipboardData.setData("Text","' + a.PatID + '");}' + 'ordwindow= window.open ("' + @OrderDetailURL + '", "RXOrderDetail", "location=0,status=0,menubar=0,toolba r=0,scrollbars=1,resizable=1"); ordwindow.moveTo(parent.screenLeft,0);var x; x=new ActiveXObject("WScript.Shell");x.SendKeys("% "); x.SendKeys ("x"); //fcttest((sp_RX_ChangeOrderStatus ' + '''' + a.DocID + '''' + ', 1, ' + convert(varchar,@SessionID) + '));' As [W],

0 Answers  


What is the difference between remove() and removeChild()?

0 Answers  


How to disable an html object ?

0 Answers  


Categories