Please Log in to join the conversation.
Please Log in to join the conversation.
<!DOCTYPE html>
<html>
<body>
~ p ~ Click the button to open a new window called "MsgWindow" with some text.~ /p ~
~ button on~click="myFunction()" ~ Try it ~ /button ~
~ s c r i p t ~
fun~ction myFunction() {
var myWindow = window . open("", "MsgWindow", "width=200, height=100");
myWindow . document . write("~p~This is 'MsgWindow'. I am 200px wide and 100px tall!~ /p ~");
}
~ /s c r i p t ~
</body>
</html>
Please Log in to join the conversation.
Please Log in to join the conversation.
krileon wrote: You are including the entire HTML structure, that's not valid. The <html and <body are already established by Joomla. The Code action also has a Method for JS that handles the script output.
Yes, we've high security here. Sometimes it's best to just attach a text file with your code in it.
Please Log in to join the conversation.
Please Log in to join the conversation.