Forum Discussion
MlisandeBuitenk
2 months agoCommunity Member
Launch page with multiple buttons
Is it at all possible to make a launch page with several links which all open a different course, utilising the script from launcher.html? I'd like to have a page that looks something like this, but...
Alma219Way
2 months agoCommunity Member
You can create a launch page with several links opening different courses in new windows by using a single function. Here's a simplified example:
html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Course Launcher</title>
<script>
function launchCourse(courseUrl) {
window.open(courseUrl, '_blank');
}
</script>
</head>
<body>
<h1>Select a Course</h1>
<ul>
<li><a href="javascript:launchCourse('course1.html');">Course 1</a></li>
<li><a href="javascript:launchCourse('course2.html');">Course 2</a></li>
<li><a href="javascript:launchCourse('course3.html');">Course 3</a></li>
</ul>
</body>
</html>
This method avoids duplicating the script and keeps your code clean.