könnt Ihr mir helfen?
Das Problem: Ich will durch einen Button klick eine Meldung anzeigen lassen.
Coder.js
Code: Alles auswählen
function createLink( var link, var label )
{
alert('<a href=\''+ link +'\'>'+ label +'</a>');
}
Code: Alles auswählen
<div class="uiExtra">
<div class="littleBox" style="height:150px">
<form name="frame1">
<p style="margin-left:20px;">
<font color="blue"> Adding link: </font> </br>
Link:</br><input type="text" value="https://www.google.com/" name="link"> </br>
Label: <input type="text" value="google" name="label"> </br>
</p>
</form>
<script language="text/javascript" src="Coder.js"> </script>
<button style="margin-left:20px; color:red;" type="button" onclick="createLink(document.frame1.link.value, document.frame1.label.value)">Create code!</button>
</div>
</div>
Egal, ich will ja lernen, wie man jetzt sowas macht.
Danke im Voraus!
KIND REGARDS,
Kmitska