trying web share api

This commit is contained in:
2023-09-02 15:24:25 +05:30
parent 84c392a621
commit 97f72daf3a

View File

@@ -1,3 +1,12 @@
<script>
function share(){
const data = {
text: 'hello world',
}
navigator.share(data)
}
</script>
<p> <p>
This will be populated&hellip; sometime This will be populated&hellip; sometime
</p> </p>
@@ -7,4 +16,6 @@ This will be populated&hellip; sometime
<th scope="row">Semester</th> <th scope="row">Semester</th>
<td>N</td> <td>N</td>
</tr> </tr>
</table> </table>
<button on:click={share}>Send mail</button>